#ifndef SQLITE_POOL_H
#define SQLITE_POOL_H

#include <QObject>

#include <QSqlDatabase>
#include <QSqlError>
#include <QSqlQuery>
#include <QSqlRecord>

#include <QDebug>

class SQLITE_Pool : public QObject
{
    Q_OBJECT
public:

    SQLITE_Pool(QObject *parent = nullptr);

    static SQLITE_Pool* getInstance();


    void reset_Material_Height_DataBase();

    QSqlDatabase* get_Material_Height_DataBase();


    void reset_Order_Process_DataBase();

    QSqlDatabase* get_Order_Process_DataBase();


    void reset_QR_Code_Process_DataBase();

    QSqlDatabase* get_QR_Code_Process_DataBase();


private:

    QSqlDatabase* m_Material_Height_DataBase = nullptr;

    QSqlDatabase* m_Order_Process_DataBase =  nullptr;

    QSqlDatabase* m_QR_Code_Process_DataBase = nullptr;

signals:
};

#endif // SQLITE_POOL_H
